import request from '@/utils/request'

/**
 * 查询营业概况统计数据
 */
export function getStatisticsData(): any {
  return request({
    url: '/home/statistics',
    method: 'get',
  })
}

/**
 * 查询分类销售统计数据
 */
export function getCategoryData(): any {
  return request({
    url: '/home/categoryData',
    method: 'get',
  })
}

/**
 * 查询分类销售统计数据
 */
export function getLast30DaysSaleData(): any {
  return request({
    url: '/home/30days/saleData',
    method: 'get',
  })
}

/**
 * 查询会员消费top10数据
 */
export function getMemberTop10Data() {
  return request({
    url: '/home/member/top10',
    method: 'GET',
  });
}